/**
 * 
 */
package cn.com.xf.web;

import javax.servlet.ServletRequest;

import org.springframework.context.ApplicationContext;

/**
 * @author Administrator
 * 
 */
public class XFContainsTool {
	private static ApplicationContext applicationContext;
	private static ServletRequest request;
	private static String password;

	public static ServletRequest getRequest() {
		return request;
	}

	public static void setRequest(ServletRequest request) {
		XFContainsTool.request = request;
	}

	public static ApplicationContext getApplicationContext() {
		return applicationContext;
	}

	public static void setApplicationContext(ApplicationContext applicationContext) {
		XFContainsTool.applicationContext = applicationContext;
	}

	public static Object lookup(String className) {
		return XFContainsTool.applicationContext.getBean(className);
	}

	public static String getPassword() {
		return password;
	}

	public static void setPassword(String password) {
		XFContainsTool.password = password;
	}

}
